package cn.ynrcb.personnelfile.admin.service;

import cn.ynrcb.personnelfile.admin.entity.NoticeEntity;
import cn.ynrcb.personnelfile.admin.entity.NoticeSendEntity;
import cn.ynrcb.personnelfile.admin.vo.NoticeVo;
import cn.ynrcb.personnelfile.common.utils.PageUtils;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * 通知表
 *
 * @author lihui
 * @email 379612472@qq.com
 * @date 2021-06-08 14:51:29
 */
public interface NoticeService extends IService<NoticeEntity> {

    /**
     * 根据条件分页查询列表
     * @param params
     * @return
     */
    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageIndex(Map<String, Object> params);

    /**
     * 根据条件查询列表
     * @param params
     * @return
     */
    List<NoticeEntity> queryList(Map<String, Object> params);

    /**
     * 通知发送Id
     * @param noticeSendId
     * @return
     */
    NoticeVo.InfoResp noticeInfo(Long noticeSendId);

    /**
     * 保存通知
     * @param params
     */
    void saveNotice(NoticeVo.saveParam params);

    List<NoticeSendEntity> getCheckedTree(Integer id);

//    void adminSaveNotice(NoticeEntity notice);

    void updateNoticeById(NoticeEntity notice);

    PageUtils queryAdminPage(Map<String, Object> params);

    PageUtils queryMyNoticePage(Map<String, Object> params);
}

